package io.renren.modules.sqlapi.service;

import cn.hutool.db.Page;
import io.renren.common.page.PageData;
import io.renren.common.service.CrudService;
import io.renren.modules.sqlapi.dto.SysApiSqlDTO;
import io.renren.modules.sqlapi.entity.SysApiSqlEntity;

import java.util.List;
import java.util.Map;

/**
 * sqlApi
 *
 * @author Mark sunlightcs@gmail.com
 * @since 3.0 2023-04-28
 */
public interface SysApiSqlService extends CrudService<SysApiSqlEntity, SysApiSqlDTO> {

    /**
     * 通过编码查询
     * @aram code 接口
     * */
    SysApiSqlEntity queryByCode(String code );

    public String querySql(String code , Map<String,Object> param );
    public PageData<Map> pageData(Page page, String code , Map<String,Object> param );

    public List<Map<String, String>> list(String code , Map<String,Object> param );

}
